<template>
  <avue-crud ref="crud"
             :option="option"
             :data="data">
    <template #name-header="{column}">
      <el-tag>{{(column || {}).label}}-{{(column || {}).prop}}</el-tag>
    </template>
  </avue-crud>
</template>
<script>
export default {
  data () {
    return {
      option: {
        column: [{
          label: '姓名',
          prop: 'name',
        }, {
          label: '年龄',
          prop: 'sex'
        }]
      },
      data: [
        {
          name: '张三',
          sex: '男'
        }, {
          name: '李四',
          sex: '女'
        }
      ],
    }
  }
}
</script>